package com.ls.lserp.modules.job.dao;

import java.util.List;
import java.util.Map;

import com.ls.lserp.common.persistence.CrudDao;
import com.ls.lserp.common.persistence.annotation.MyBatisDao;
import com.ls.lserp.modules.job.entity.MaterialEntity;

@MyBatisDao
public interface MaterialEntityDao extends CrudDao<MaterialEntity> { 
	
	/**删除所有数据
	 * 
	 * @param dict
	 * @return
	 */
	public int deleteAll(MaterialEntity materialEntity);
    
	/**插入数据从List
	 * 
	 * @param dict
	 * @return
	 */
	public int insertByList(MaterialEntity materialEntity);
	
	/**
	 * 插入数据
	 * @param materialEntity
	 * @return
	 */
	public int insertByEntity(MaterialEntity materialEntity);

	/**
	 * 往a_shop_material_r表插入数据
	 * @param materialEntity
	 * @return
	 */
	public int insertAShopMaterialR(MaterialEntity materialEntity);
	
	/**
	 * 更新数据
	 * @param materialEntity
	 * @return
	 */
	public int updateByEntity(MaterialEntity materialEntity);
	
	/**
	 * 查询所有数据列表
	 * @param entity
	 * @return
	 */
	public Map<Long,String> findAllListMap(MaterialEntity materialEntity);
	
}